.knowledge-demo-btn {
    display: flex;
    justify-content: space-between;

    .demo-btn {
        display: flex;
        gap: 10px;
    }
    
    .btn-content {
        display: flex;
        justify-content: center;
        gap: 3px;
        flex-wrap: wrap;
    }
}

.knowledge-btn-icon {
    i:before {
        font-weight: bold;
    }
}

.demo-tooltip-icon {
    font-size: 18px;
}

.demo-tooltip-note {
    .tooltip-inner {
        max-width: fit-content;
    }

    ul {
        text-align: left !important;
        margin-bottom: 0px !important;
        padding-left: 1rem !important;

        li {
            margin: 3px 0px;
        }
    }
}

.knowledge-textarea {
    border-radius: 5px;
    border-color: var(--#{$prefix}light) !important;
    background-color: var(--#{$prefix}light) !important;
    scrollbar-width: thin;
    resize: none;
}

.knowledge-search-container {
    .text-count {
        margin-top: 2px;
        font-size: 10px;
    }

    .knowledge-search-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .search-input {
            display: flex;
            gap: 5px;
        }

        .confidence-box {
            width: 45%;
        }

        .step-btn-group {
            display: flex;
            flex-direction: column;

            button {
                padding: 0px;

                i::before {
                    font-size: 1.2em;
                    font-weight: 700;
                }
            }
        }

        .input-text {
            padding: 0.47rem 0px;
            font-size: 14px;
        }

        .search-toggle {
            height: 100%;
            width: 35px;

            .form-switch {
                padding: 0px;
            }

            input {
                margin: 0px;
                height: 100%;
                width: 100%;
                outline: none !important;
                box-shadow: none !important;
            }
        }
    }

    .graph-searh-result-container {
        .graph-result-header {
            font-size: 17px;
        }

        .graph-result-body {
            font-size: 15px;
        }
    }
}

.knowledge-table-header {
    justify-content: space-between;

    .knowledge-header-text {
        margin-bottom: 0px !important;
        padding: 0.47rem 0.75rem;
    }

    .collection-dropdown-container {
        width: 20%;
        display: flex;
        gap: 5px;
        justify-content: flex-end;

        .collection-dropdown {
            width: 100%;
        }

        .collection-action-btn {
            i:before {
                font-weight: bold;
            }
        }

        select {
            outline: none !important;
            box-shadow: none !important;
        }
    }
}

.knowledge-table {
    overflow: hidden;

    .knowledge-text {
        width: 70%;
    }

    .knowledge-text-qa {
        width: 40%;
        max-width: 50px;
    }

    .knowledge-op {
        width: 20%;

        .knowledge-op-list {
            justify-content: center;
        }
    }

    .knowledge-detail {
        padding: 2px 5px;
        border-radius: 3px;
        border-color: var(--#{$prefix}light) !important;
        background-color: var(--#{$prefix}light) !important;
        position: relative;

        ul {
            margin: 15px 0px;

            li {
                margin: 5px 0px;
            }
        }

        .wrappable {
            white-space: wrap !important;
        }

        .more-detail-item {
            .link {
                color: var(--bs-primary);

                &:hover {
                    text-decoration: underline;
                }
            }
        }

        .more-detail {
            margin: 2px 0px;
            padding-left: 2rem;

            button {
                padding-left: 0;
            }
        }

        .more-detail-list {
            margin: 1px 0px 15px 0px;
            font-size: 10px;
            padding-left: 4rem;
            
            .more-dtail-item {
                list-style-type: square;
            }
        }
    }
}

.knowledge-loader {
    display: flex;
    justify-content: center;
}

.vector-edit-container {
    .modal-title {
        display: flex;
        justify-content: space-between;
        width: 100%;

        .collection-value {
            font-size: 15px;
        }
    }

    .edit-group {
        display: flex;
        flex-direction: column;

        .textarea-label {
            font-size: 15px;
        }
    }
}

.knowledge-doc-upload-container {
    margin-top: 50px;

    .doc-upload-header {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        font-size: 18px;

        .upload-toggle-btn input {
            outline: none !important;
            box-shadow: none !important;
        }
    }

    .doc-upload-body {
        .doc-drop-zone {
            width: 100%;
            height: 100%;

            i {
                font-size: 3.5em;
            }
        }
    }

    .doc-upload-footer {
        margin-top: 30px;

        .load-doc-btn {
            font-size: 12px;
            display: flex;
            justify-content: space-between;

            .reset-docs-btn {
                color: var(--bs-danger);
                
                i {
                    font-size: 18px;
                    border-radius: 3px;

                    &:hover {
                        background-color: var(--bs-danger);
                        color: white;
                    }
                }
            }
        }

        .collection-docs {
            margin-top: 10px;
            padding: 10px;
            border: 1px dashed var(--bs-primary);
            border-radius: 5px;
            background-color: white;
            overflow-y: scroll;
            scrollbar-width: thin;
            width: 100%;
            height: 200px;
        }

        .doc-load-more {
            font-size: 3em;
        }
    }
}

.doc-card-btn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: white;
    font-size: 3.5em;

    i:hover {
        color: var(--bs-primary);
    }
}

.doc-upload-result-container {
    .doc-upload-result-item {
        display: flex;
        gap: 5px;
    }
}

.doc-uploader-container {
    border-radius: 10px;
    padding: 10px;
    background-color: var(--bs-light);
}

.knowledge-adv-search-container {
    .knowledge-adv-search-btn {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        font-size: 18px;
    
        input {
            outline: none !important;
            box-shadow: none !important;
        }
    }
    
    .knowledge-adv-search-items {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    
        .knowledge-adv-search-item {
            display: flex;
            gap: 10px;
    
            .search-item-cb {
                flex: 0 0 20px;
    
                .form-check {
                    font-size: 15px;
                    margin-bottom: 0.125rem;
                }
    
                input[type="checkbox"] {
                    outline: none !important;
                    box-shadow: none !important;
                }
            }
    
            .search-item-name {
                font-size: 15px;
                flex: 0 0 100px;
            }
    
            .search-item-content {
                flex: 0.3;
                min-width: 150px;
                max-width: 350px;
            }
        }
    }
}


.vector-collection-create-container {
    .collection-input {
        .invalid-input {
            border-color: var(--bs-danger);
        }

        .collection-note {
            display: flex;
        }
    
        .valid {
            justify-content: flex-end;
        }
    
        .invalid {
            justify-content: space-between;
        }
    }
}